mapClangTidy

Apply fn on the diagnostic messages.

The return value from fn replaces the message. This makes it possible to rewrite a message if needed.

@safe
void
mapClangTidy
(
alias diagFn
Writer
)
(
string[] lines
,
ref scope Writer w
)

Parameters

diagFn

mapped onto a diagnostic message

lines
Type: string[]

an input range of lines to analyze for diagnostic messages

w
Type: Writer

output range that the resulting log is written to.

Meta